package response

type TopTopic struct {
	ID    int     `json:"id"`
	Name  string  `json:"name" gorm:"column:label"`
	Value int     `json:"-" gorm:"column:value"`
	Topic []Topic `json:"topic" gorm:"foreignKey:PID;references:Value;"`
}
type Topic struct {
	ID     int    `json:"id" gorm:"column:id"`
	Name   string `json:"name" gorm:"column:name"`
	PID    int    `json:"-" gorm:"column:pid"`
	Number int    `json:"number" gorm:"column:number"`
}

func (TopTopic) TableName() string {
	return "sys_dictionary_details"
}

func (Topic) TableName() string {
	return "fd_topic"
}
